home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
game
/
patch
/
WHDIGamesC-D.lzh
/
Deliverance.lha
/
Deliverance
/
Deliverance
next >
Wrap
Text File
|
1998-07-09
|
2KB
|
87 lines
;----------------------------
; Adapted from Bert Jahn
;----------------------------
;****************************
(set #readme-file "README") ;name of readme file
(set #CI_drive "DF0:") ;default source drive
(set #cleanup "") ;files to delete after install
;****************************
(set @default-dest
(askdir
(prompt ("Where should \"%s\" installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
;if anything similar exist delete it
(if
(exists #dest)
(run ("Delete \"%s\" \"%s.info\" all" #dest #dest))
)
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(run ("c:assign \"%s:\" \"%s\"" @app-name #dest))
(copyfiles
(help @copyfiles-help)
(source ("%s.inf" @app-name ))
(newname ("%s.info" @app-name ))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.slave" @app-name ))
(dest #dest)
)
; in expert mode ask for source drive
(if
(= @user-level 2)
(set #CI_drive
(askstring
(prompt "Select source drive for diskimages")
(default #CI_drive)
(help @askstring-help)
)
)
)
(run ("patcher -pimager%s -s%s" @app-name #CI_drive))
(if
(exists #readme-file)
(copyfiles
(help @copyfiles-help)
(source #readme-file)
(dest #dest)
)
)
;----------------------------
(run ("Delete %s ALL QUIET FORCE" #cleanup)) ;delete all temporary files
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(exit)